package com.softaria.windows.model;

import com.google.gwt.user.client.ui.Widget;
import com.softaria.windows.view.ViewFactory;

/**
 * POJO class that represents view. Used as data. Created by {@link ViewFactory}
 * 
 * @author Roman M Kuzmin (roman@softaria.com)
 * 
 */
public class View {
  private ViewUrl viewUrl;
  private Widget content;
  private String name;

  private SizeCalculator sizeCalculator = null;
  private PositionCalculator positionCalculator = null;

  public ViewUrl getViewUrl() {
    return viewUrl;
  }

  public void setViewUrl(ViewUrl viewUrl) {
    this.viewUrl = viewUrl;
  }

  public Widget getContent() {
    return content;
  }

  public void setContent(Widget content) {
    this.content = content;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public SizeCalculator getSizeCalculator() {
    return sizeCalculator;
  }

  public void setSizeCalculator(SizeCalculator size) {
    this.sizeCalculator = size;
  }

  public PositionCalculator getPositionCalculator() {
    return positionCalculator;
  }

  public void setPositionCalculator(PositionCalculator positionCalculator) {
    this.positionCalculator = positionCalculator;
  }

}
